package com.wzl.demo_07_02;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

public class ThirdActivity extends AppCompatActivity {

    private TextView tv3;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_third);

        tv3 = (TextView)findViewById(R.id.task_tv_3);
        tv3.setText("TaskId: "+this.getTaskId());

        Log.i(getClass().getSimpleName(), "onCreate: "+this.hashCode());
    }
    public void go(View view) {
        Intent intent = new Intent();
        intent.setClass(this, ThirdActivity.class);
//        intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
        startActivity(intent);
    }
}